<template>
    <div>
        <a-modal
            :title="modalTitle"
            v-model="modalShow"
            @ok="onSubmit"
            :width="1000"
            okText="确认"
            cancelText="取消"
        >
            <Employee types="radio"></Employee>
        </a-modal>
    </div>
</template>

<script>
import Bus from "../../../../utils/Bus";
import dict from "../../../dict.json";
import LibsCommonBasics from "libs-common-basics";
export default {
    name: "modal",
    data() {
        return {
            modalShow: false,
            codeDisabled: false,
            modalTitle: "",
            labelCol: { span: 7 },
            wrapperCol: { span: 16 },
            form: {},
            fileList: [],
        };
    },
    methods: {
        // 打开窗口
        openModal(data) {
            this.form = !!data ? data : {};
            this.modalTitle = "选择人员";
            this.codeDisabled = !!data;
            this.modalShow = true;
        },
        // 确定提交表单
        onSubmit() {
            Bus.$emit("entry", this.form);
            this.modalShow = false;
        },
    },
};
</script>
